Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
14 lines (7 loc) · 386 Bytes

10.14 - Process->close.md

File metadata and controls

14 lines (7 loc) · 386 Bytes

Process->close

用于关闭创建的好的管道。

bool Process->close(int $which = 0);
  • $which 指定关闭哪一个管道,默认为0表示同时关闭读和写,1:关闭写,2关闭读

有一些特殊的情况Process对象无法释放,如果持续创建进程会导致连接泄漏。调用此函数就可以直接关闭管道,释放资源。